From: Alessandro Bono Date: Sat, 20 May 2017 15:56:48 +0000 (+0200) Subject: windowManager: Add animations for maximize and unmaximize X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~329 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=83fb34608c3bb48a92758d09167bc1758fb98697;p=gnome-shell.git windowManager: Add animations for maximize and unmaximize The fullscreen animation code is now generic enough to handle any size change animations, so stop limiting it to (un)fullscreen to get animations on (un)maximize as well. https://bugzilla.gnome.org/show_bug.cgi?id=766685 --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index 325df97d5..a89c726b4 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -1313,9 +1313,7 @@ const WindowManager = new Lang.Class({ return; } - if ((whichChange == Meta.SizeChange.FULLSCREEN || - whichChange == Meta.SizeChange.UNFULLSCREEN) && - oldFrameRect.width > 0 && oldFrameRect.height > 0) + if (oldFrameRect.width > 0 && oldFrameRect.height > 0) this._prepareAnimationInfo(shellwm, actor, oldFrameRect, whichChange); else shellwm.completed_size_change(actor);